export default {
  readJson (key) {
    return JSON.parse(localStorage.getItem(key))
  },
  saveJson (key, value) {
    localStorage.setItem(key, JSON.stringify(value))
  },
  readItem (key) {
    return localStorage.getItem(key)
  },
  saveItem (key, value) {
    localStorage.setItem(key, value)
  },
  remove (key) {
    localStorage.removeItem(key)
  },
  clear () {
    localStorage.clear()
  }
}
